300
Can I add any break or divider line

List1->ScrollBySingleLine = false;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	long h = var_Items->Add(TNoParam());
	var_Items->set_ItemBreak(h,Exlistlib_tlb::BreakLineEnum::SingleLine);
	var_Items->set_SelectableItem(h,false);
	var_Items->set_ItemHeight(h,6);
	var_Items->Add(TVariant("Item 3"));

299
Can I change the default border of the tooltip, using your EBN files

List1->ToolTipDelay = 1;
List1->ToolTipWidth = 364;
List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
List1->Background[Exlistlib_tlb::BackgroundPartEnum::exToolTipAppearance] = 0x1000000;
List1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";

298
Can I change the background color for the tooltip

List1->ToolTipDelay = 1;
List1->ToolTipWidth = 364;
List1->Background[Exlistlib_tlb::BackgroundPartEnum::exToolTipBackColor] = RGB(255,0,0);
List1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";

297
Does the tooltip support HTML format

List1->ToolTipDelay = 1;
List1->ToolTipWidth = 364;
List1->Columns->Add(L"tootip")->ToolTip = L"<font Tahoma;11>T</font>his is an HTML <b>tooltip</b> assigned to a <fgcolor=FF0000>column</fgcolor>";

296
Can I change the forecolor for the tooltip

List1->ToolTipDelay = 1;
List1->ToolTipWidth = 364;
List1->Background[Exlistlib_tlb::BackgroundPartEnum::exToolTipForeColor] = RGB(255,0,0);
List1->Columns->Add(L"tootip")->ToolTip = L"this is a tooltip assigned to a column";

295
Can I change the foreground color for the tooltip

List1->ToolTipDelay = 1;
List1->ToolTipWidth = 364;
List1->Columns->Add(L"tootip")->ToolTip = L"<fgcolor=FF0000>this is a tooltip assigned to a column</fgcolor>";

294
Is there any function to limit the height of the items when I display it using multiple lines

List1->ScrollBySingleLine = true;
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("This is bit of text that's shown on multiple lines. This is bit of text that's shown on multiple lines."));
	var_Items->set_CellSingleLine(h,TVariant(1),Exlistlib_tlb::CellSingleLineEnum::exCaptionWordWrap);
	var_Items->set_ItemMaxHeight(h,48);

293
Why I cannot center my cells in the column

List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exAllLines;
List1->Columns->Add(L"Default")->Alignment = Exlistlib_tlb::AlignmentEnum::CenterAlignment;
List1->Items->Add(TVariant("item 1"));
List1->Items->Add(TVariant("item 2"));
List1->Items->Add(TVariant("item 3"));

292
How can I align the cell to the left, center or to the right

List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exAllLines;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellHAlignment(var_Items->Add(TVariant("left")),TVariant(0),Exlistlib_tlb::AlignmentEnum::LeftAlignment);
	var_Items->set_CellHAlignment(var_Items->Add(TVariant("center")),TVariant(0),Exlistlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellHAlignment(var_Items->Add(TVariant("right")),TVariant(0),Exlistlib_tlb::AlignmentEnum::RightAlignment);

291
How do I apply HTML format to a cell

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
List1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("The following item shows some of the HTML format supported:"));
	var_Items->set_CellHAlignment(h,TVariant(0),Exlistlib_tlb::AlignmentEnum::CenterAlignment);
	h = var_Items->Add(TVariant(String("<br>text icons <img>1</img>, <img>2</img>, ... pictures <img>p1</img>, <img>p2</img> <br><br>text <b>bold</b>, <i>italic</i>, <") +
"u>underline</u>, <s>strikeout</s>, ...<br><dotline>and so on...<br> <a>anchor</a> or <a2>hyperlink</a><br><fgcolor=FF0000>fgcolo" +
"r</fgcolor> or <bgcolor=00FF00>bgcolor</bgcolor> "));
	var_Items->set_CaptionFormat(h,TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);
	var_Items->set_CellSingleLine(h,TVariant(0),Exlistlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

290
How can I change the font for a cell

List1->Columns->Add(L"Default");
List1->Items->Add(TVariant("std font"));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CaptionFormat(var_Items->Add(TVariant("this <font tahoma;12>is a bit of text with</font> a different font")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

289
How can I change the font for a cell

List1->Columns->Add(L"Default");
List1->Items->Add(TVariant("default font"));
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Name = L"Tahoma";
	f->Size = TVariant(long(12));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellFont(var_Items->Add(TVariant("new font")),TVariant(0),(IFontDisp*)(f));

288
How can I change the font for entire item

List1->Columns->Add(L"Default");
List1->Items->Add(TVariant("default font"));
/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Name = L"Tahoma";
	f->Size = TVariant(long(12));
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemFont(var_Items->Add(TVariant("new font")),(IFontDisp*)(f));

287
How do I vertically align a cell

List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exAllLines;
List1->Columns->Add(L"MultipleLine")->set_Def(Exlistlib_tlb::DefColumnEnum::exCellSingleLine,TVariant(false));
List1->Columns->Add(L"VAlign");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("This is a bit of long text that should break the line"));
	var_Items->set_Caption(h,TVariant(1),TVariant("top"));
	var_Items->set_CellVAlignment(h,TVariant(1),Exlistlib_tlb::VAlignmentEnum::TopAlignment);
	h = var_Items->Add(TVariant("This is a bit of long text that should break the line"));
	var_Items->set_Caption(h,TVariant(1),TVariant("middle"));
	var_Items->set_CellVAlignment(h,TVariant(1),Exlistlib_tlb::VAlignmentEnum::MiddleAlignment);
	h = var_Items->Add(TVariant("This is a bit of long text that should break the line"));
	var_Items->set_Caption(h,TVariant(1),TVariant("bottom"));
	var_Items->set_CellVAlignment(h,TVariant(1),Exlistlib_tlb::VAlignmentEnum::BottomAlignment);

286
How can I change the position of an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->set_ItemPosition(var_Items->Add(TVariant("Item 3")),0);

285
How do I find an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_ItemBold(var_Items->get_FindItem(TVariant("Item 2"),TVariant(0),TNoParam()),true);

284
How can I insert a hyperlink or an anchor element

List1->Columns->Add(L"Column");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CaptionFormat(var_Items->Add(TVariant("Just an <a1>anchor</a> element ...")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);
Exlistlib_tlb::IItemsPtr var_Items1 = List1->Items;
	var_Items1->set_CaptionFormat(var_Items1->Add(TVariant("Just another <a2>anchor</a> element ...")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

283
How do I find the handle of the item based on its index

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_ItemBold(1,true);

282
How can I find the cell being clicked in a radio group

List1->MarkSearchColumn = false;
List1->SelBackColor = RGB(255,255,128);
List1->SelForeColor = RGB(0,0,0);
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
List1->Columns->Add(L"C3");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(h,TVariant(1),true);
	var_Items->set_CellRadioGroup(h,TVariant(1),1234);
	var_Items->set_Caption(h,TVariant(2),TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(h,TVariant(2),true);
	var_Items->set_CellRadioGroup(h,TVariant(2),1234);
	var_Items->set_CellState(h,TVariant(1),1);
	var_Items->CellChecked(1234,i,c);
	var_Items->set_CellBold(i,TVariant(c),true);

281
Can I let the user to resize at runtime the specified item

List1->ScrollBySingleLine = true;
List1->DrawGridLines = Exlistlib_tlb::GridLinesEnum::exAllLines;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemAllowSizing(var_Items->Add(TVariant("resizable item")),true);
	var_Items->Add(TVariant("not resizable item"));

280
How can I change the size ( width, height ) of the picture

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->set_CellPicture(h,TVariant(0),List1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
	var_Items->set_CellPictureWidth(h,TVariant(0),24);
	var_Items->set_CellPictureHeight(h,TVariant(0),24);
	var_Items->set_ItemHeight(h,32);
	h = var_Items->Add(TVariant("Item 2"));
	var_Items->set_CellPicture(h,TVariant(0),List1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
	var_Items->set_ItemHeight(h,48);

279
How can I find the number or the count of selected items

List1->SingleSel = false;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_SelectItem(var_Items->FirstVisibleItem,true);
	var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FirstVisibleItem),true);
	var_Items->Add(TVariant(var_Items->SelectCount));

278
How do I unselect an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_SelectItem(h,false);

277
How do I find the selected item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_SelectItem(h,true);
	var_Items->set_ItemBold(var_Items->get_SelectedItem(0),true);

276
How do I un select all items

List1->SingleSel = false;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->UnselectAll();

275
How do I select multiple items

List1->SingleSel = false;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_SelectItem(var_Items->FirstVisibleItem,true);
	var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FirstVisibleItem),true);

274
How do I select all items

List1->SingleSel = false;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->SelectAll();

273
How do I select an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_SelectItem(var_Items->get_NextVisibleItem(var_Items->FocusItem),true);

272
Can I display a button with some picture or icon inside

List1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant(" Button <img>p1</img> "));
	var_Items->set_CaptionFormat(h,TVariant(1),Exlistlib_tlb::CaptionFormatEnum::exHTML);
	var_Items->set_CellHAlignment(h,TVariant(1),Exlistlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(h,TVariant(1),true);
	var_Items->set_ItemHeight(h,48);

271
Can I display a button with some picture or icon inside

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant(" Button <img>1</img> "));
	var_Items->set_CaptionFormat(h,TVariant(1),Exlistlib_tlb::CaptionFormatEnum::exHTML);
	var_Items->set_CellHAlignment(h,TVariant(1),Exlistlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(h,TVariant(1),true);

270
Can I display a button with some icon inside

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant(" <img>1</img> "));
	var_Items->set_CaptionFormat(h,TVariant(1),Exlistlib_tlb::CaptionFormatEnum::exHTML);
	var_Items->set_CellHAlignment(h,TVariant(1),Exlistlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(h,TVariant(1),true);

269
How can I assign multiple icon/picture to a cell

List1->HTMLPicture[L"p1"] = TVariant("c:\\exontrol\\images\\zipdisk.gif");
List1->HTMLPicture[L"p2"] = TVariant("c:\\exontrol\\images\\auction.gif");
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("text <img>p1</img> another picture <img>p2</img> and so on"));
	var_Items->set_CaptionFormat(h,TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);
	var_Items->set_CellPicture(h,TVariant(0),List1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\colorize.gif`)"));
	var_Items->set_ItemHeight(h,48);
	var_Items->Add(TVariant("Item 2"));

268
How can I assign an icon/picture to a cell

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->set_CellPicture(h,TVariant(0),List1->ExecuteTemplate("loadpicture(`c:\\exontrol\\images\\zipdisk.gif`)"));
	var_Items->set_ItemHeight(h,48);
	var_Items->Add(TVariant("Item 2"));

267
How can I assign multiple icons/pictures to a cell

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item <img>1</img> 1, <img>2</img>, ... and so on "));
	var_Items->set_CaptionFormat(h,TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

266
How can I assign multiple icons/pictures to a cell

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->set_CellImages(h,TVariant(0),TVariant("1,2,3"));

265
How can I assign an icon/picture to a cell

List1->Images(TVariant(String("gBJJgBAIDAAGAAEAAQhYAf8Pf4hh0QihCJo2AEZjQAjEZFEaIEaEEaAIAkcbk0olUrlktl0vmExmUzmk1m03nE5nU7nk9n0/oFBoVDolFo1HpFJpVLplNp1PqFRqVTq") +
"lVq1XrFZrVbrldr1fsFhsVjslls1ntFptVrtltt1vuFxuVzul1u13vF5vV7vl9v1/wGBwWDwmFw2HxGJxWLxmNx0xiFdyOTh8Tf9ZymXx+QytcyNgz8r0OblWjyWds+m" +
"0ka1Vf1ta1+r1mos2xrG2xeZ0+a0W0qOx3GO4NV3WeyvD2XJ5XL5nN51aiw+lfSj0gkUkAEllHanHI5j/cHg8EZf7w8vl8j4f/qfEZeB09/vjLAB30+kZQAP/P5/H6/y" +
"NAOAEAwCjMBwFAEDwJBMDwLBYAP2/8Hv8/gAGAD8LQs9w/nhDY/oygIA="));
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	var_Items->set_CellImage(h,TVariant(0),1);
	var_Items->set_CellImage(var_Items->Add(TVariant("Item 2")),TVariant(0),2);
	var_Items->set_CellImage(var_Items->Add(TVariant("Item 3")),TVariant(0),3);

264
How can I display a button inside the item or cell

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant(" Button 1 "));
	var_Items->set_CellHAlignment(h,TVariant(1),Exlistlib_tlb::AlignmentEnum::RightAlignment);
	var_Items->set_CellHasButton(h,TVariant(1),true);
	h = var_Items->Add(TVariant("Cell 2"));
	var_Items->set_Caption(h,TVariant(1),TVariant(" Button 2 "));
	var_Items->set_CellHAlignment(h,TVariant(1),Exlistlib_tlb::AlignmentEnum::CenterAlignment);
	var_Items->set_CellHasButton(h,TVariant(1),true);

263
How can I change the state of a radio button

List1->MarkSearchColumn = false;
List1->SelBackColor = RGB(255,255,128);
List1->SelForeColor = RGB(0,0,0);
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
List1->Columns->Add(L"C3");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(h,TVariant(1),true);
	var_Items->set_CellRadioGroup(h,TVariant(1),1234);
	var_Items->set_Caption(h,TVariant(2),TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(h,TVariant(2),true);
	var_Items->set_CellRadioGroup(h,TVariant(2),1234);
	var_Items->set_CellState(h,TVariant(1),1);

262
How can I assign a radio button to a cell

List1->MarkSearchColumn = false;
List1->SelBackColor = RGB(255,255,128);
List1->SelForeColor = RGB(0,0,0);
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
List1->Columns->Add(L"C3");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Radio 1"));
	var_Items->set_CellHasRadioButton(h,TVariant(1),true);
	var_Items->set_CellRadioGroup(h,TVariant(1),1234);
	var_Items->set_Caption(h,TVariant(2),TVariant("Radio 2"));
	var_Items->set_CellHasRadioButton(h,TVariant(2),true);
	var_Items->set_CellRadioGroup(h,TVariant(2),1234);
	var_Items->set_CellState(h,TVariant(1),1);

261
How can I change the state of a checkbox

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Check Box"));
	var_Items->set_CellHasCheckBox(h,TVariant(1),true);
	var_Items->set_CellState(h,TVariant(1),1);

260
How can I assign a checkbox to a cell

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Check Box"));
	var_Items->set_CellHasCheckBox(h,TVariant(1),true);

259
How can I display an item or a cell on multiple lines

List1->ScrollBySingleLine = true;
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("This is bit of text that's shown on multiple lines"));
	var_Items->set_CellSingleLine(h,TVariant(1),Exlistlib_tlb::CellSingleLineEnum::exCaptionWordWrap);

258
How can I assign a tooltip to a cell

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("tooltip"));
	var_Items->set_CellToolTip(h,TVariant(1),L"This is bit of text that's shown when the user hovers the cell");

257
How can I associate an extra data to a cell

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellData(h,TVariant(1),TVariant("your extra data"));

256
How do I enable or disable a cell

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellEnabled(h,TVariant(1),false);

255
How do I change the cell's foreground color

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellForeColor(h,TVariant(1),RGB(255,0,0));

254
How do I change the visual effect for the cell, using your EBN files

List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellBackColor(h,TVariant(1),0x1000000);

253
How do I change the cell's background color

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Cell 1"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Cell 2"));
	var_Items->set_CellBackColor(h,TVariant(1),RGB(255,0,0));

252
How do I change the caption or value for a particular cell

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant("Cell 1")),TVariant(1),TVariant("Cell 2"));

251
How do I retrieve the focused item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant("Item 1"));
	var_Items->Add(TVariant("Item 2"));
	var_Items->Add(TVariant("Item 3"));
	var_Items->set_ItemBold(var_Items->FocusItem,true);

250
How do I enumerate the visible items

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("Item 1"));
	h = var_Items->Add(TVariant("Item 2"));
	var_Items->set_ItemBold(var_Items->FirstVisibleItem,true);
	var_Items->set_ItemBold(var_Items->get_NextVisibleItem(var_Items->FirstVisibleItem),true);

249
How can I make an item unselectable, or not selectable

List1->Columns->Add(L"Column");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("unselectable - you can't get selected"));
	var_Items->set_SelectableItem(h,false);
	var_Items->Add(TVariant("selectable"));

248
How can I hide or show an item

List1->Columns->Add(L"Column");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	long h = var_Items->Add(TVariant("hidden"));
	var_Items->set_ItemHeight(h,0);
	var_Items->set_SelectableItem(h,false);
	var_Items->Add(TVariant("visible"));

247
How can I change the height for all items

List1->DefaultItemHeight = 32;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant("One"));
List1->Items->Add(TVariant("Two"));

246
How do I change the height of an item

List1->ScrollBySingleLine = true;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemHeight(var_Items->Add(TVariant("height")),128);
List1->Items->Add(TVariant("enabled"));

245
How do I disable or enable an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_EnableItem(var_Items->Add(TVariant("disabled")),false);
List1->Items->Add(TVariant("enabled"));

244
How do I display as strikeout a cell

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellStrikeOut(var_Items->Add(TVariant("strikeout")),TVariant(0),true);

243
How do I display as strikeout a cell or an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CaptionFormat(var_Items->Add(TVariant("gets <s>strikeout</s> only a portion of text")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

242
How do I display as strikeout an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemStrikeOut(var_Items->Add(TVariant("strikeout")),true);

241
How do I underline a cell

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellUnderline(var_Items->Add(TVariant("underline")),TVariant(0),true);

240
How do I underline a cell or an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CaptionFormat(var_Items->Add(TVariant("gets <u>underline</u> only a portion of text")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

239
How do I underline an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemUnderline(var_Items->Add(TVariant("underline")),true);

238
How do I display as italic a cell

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellItalic(var_Items->Add(TVariant("italic")),TVariant(0),true);

237
How do I display as italic a cell or an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CaptionFormat(var_Items->Add(TVariant("gets <i>italic</i> only a portion of text")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

236
How do I display as italic an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemItalic(var_Items->Add(TVariant("italic")),true);

235
How do I bold a cell

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CellBold(var_Items->Add(TVariant("bold")),TVariant(0),true);

234
How do I bold a cell or an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_CaptionFormat(var_Items->Add(TVariant("gets <b>bold</b> only a portion of text")),TVariant(0),Exlistlib_tlb::CaptionFormatEnum::exHTML);

233
How do I bold an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemBold(var_Items->Add(TVariant("bold")),true);

232
How do I change the foreground color for the item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemForeColor(var_Items->Add(TVariant("Item")),RGB(255,0,0));

231
How do I change the visual appearance for the item, using your EBN technology

List1->VisualAppearance->Add(1,TVariant("c:\\exontrol\\images\\normal.ebn"));
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemBackColor(var_Items->Add(TVariant("Item")),0x1000000);

230
How do I change the background color for the item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemBackColor(var_Items->Add(TVariant("Item")),RGB(255,0,0));

229
How do I associate an extra data to an item

List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_ItemData(var_Items->Add(TVariant("item")),TVariant("your extra data"));

228
How do I programmatically edit a cell

// AfterCellEdit event - Occurs after data in the current cell is edited.
void __fastcall TForm1::List1AfterCellEdit(TObject *Sender,long   ItemIndex,long   ColIndex,BSTR   NewCaption)
{
	Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
		var_Items->set_Caption(ItemIndex,TVariant(ColIndex),TVariant(NewCaption));
}

// CancelCellEdit event - Occurs if the edit operation is canceled.
void __fastcall TForm1::List1CancelCellEdit(TObject *Sender,long   ItemIndex,long   ColIndex,Variant   Reserved)
{
	Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
		var_Items->set_Caption(ItemIndex,TVariant(ColIndex),TVariant(Reserved));
}

// Click event - Occurs when the user presses and then releases the left mouse button over the list control.
void __fastcall TForm1::List1Click(TObject *Sender)
{
	Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
		var_Items->Edit(var_Items->FocusItem,TVariant(0));
}

List1->AllowEdit = true;
List1->Columns->Add(L"Default");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->Add(TVariant(""));

227
How can I ensure or scroll the control so the item fits the control's client area

List1->Columns->Add(L"Default");
long h = List1->Items->Add(TVariant("item"));
List1->Items->EnsureVisibleItem(h);

226
How can I remove or delete all items
List1->Columns->Add(L"Default");
List1->Items->Add(TVariant("removed item"));
List1->Items->RemoveAll();

225
How can I remove or delete an item
List1->Columns->Add(L"Default");
long h = List1->Items->Add(TVariant("removed item"));
List1->Items->Remove(h);

224
How can I add or insert an item

List1->Columns->Add(L"C1");
List1->Columns->Add(L"C2");
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant("Cell 1")),TVariant(1),TVariant("Cell 2"));
	long h = var_Items->Add(TVariant("Cell 3"));
	var_Items->set_Caption(h,TVariant(1),TVariant("Cell 4"));

223
How can I add or insert an item

List1->Columns->Add(L"Default");
List1->Items->Add(TVariant("new item"));

222
How can I get the columns as they are shown in the control's sortbar
_tlb::ObjectPtr var_Object = List1->Columns->get_ItemBySortPosition(TVariant(0));

221
How can I access the properties of a column

List1->Columns->Add(L"A");
List1->Columns->get_Item(TVariant("A"))->HeaderBold = true;

220
How can I remove all the columns
List1->Columns->Clear();

219
How can I remove a column
List1->Columns->Remove(TVariant("A"));

218
How can I get the number or the count of columns
long var_Count = List1->Columns->Count;

217
How can I change the font for all cells in the entire column

/*
	Select the Component\Import Component...\Import a Type Library,
	to import the following Type Library:

		OLE Automation

	TypeLib: stdole2.tlb

	to define the namespace: Stdole_tlb
*/
//#include "STDOLE_TLB.h"
Stdole_tlb::FontPtr f = Variant::CreateObject(L"StdFont");
	f->Name = L"Tahoma";
	f->Size = TVariant(long(12));
Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->Font = (IFontDisp*)(f);
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

216
How can I change the background color for all cells in the column

Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->BackColor = RGB(255,0,0);
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

215
How can I change the foreground color for all cells in the column

Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->ForeColor = RGB(255,0,0);
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

214
How can I show as strikeout all cells in the column

Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->StrikeOut = true;
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

213
How can I underline all cells in the column

Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->Underline = true;
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

212
How can I show in italic all data in the column

Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->Italic = true;
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

211
How can I bold the entire column

Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"1",TNoParam());
	var_ConditionalFormat->Bold = true;
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum::exFormatToColumns;
List1->Columns->Add(L"Column");
List1->Items->Add(TVariant(0));
List1->Items->Add(TVariant(1));

210
How can I display a computed column and highlight some values that are negative or less than a value

List1->Columns->Add(L"A");
List1->Columns->Add(L"B");
List1->Columns->Add(L"(A+B)*1.19")->ComputedField = L"(%0 + %1) * 1.19";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant(1)),TVariant(1),TVariant(2));
Exlistlib_tlb::IItemsPtr var_Items1 = List1->Items;
	var_Items1->set_Caption(var_Items1->Add(TVariant(10)),TVariant(1),TVariant(20));
Exlistlib_tlb::IConditionalFormatPtr var_ConditionalFormat = List1->ConditionalFormats->Add(L"%2 > 10",TNoParam());
	var_ConditionalFormat->Bold = true;
	var_ConditionalFormat->ForeColor = RGB(255,0,0);
	var_ConditionalFormat->ApplyTo = Exlistlib_tlb::FormatApplyToEnum(0x2);

209
Can I display a computed column so it displays the VAT, or SUM

List1->Columns->Add(L"A");
List1->Columns->Add(L"B");
List1->Columns->Add(L"(A+B)*1.19")->ComputedField = L"(%0 + %1) * 1.19";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant(1)),TVariant(1),TVariant(2));
Exlistlib_tlb::IItemsPtr var_Items1 = List1->Items;
	var_Items1->set_Caption(var_Items1->Add(TVariant(10)),TVariant(1),TVariant(20));

208
How can I show a column that adds values in the cells

List1->Columns->Add(L"A");
List1->Columns->Add(L"B");
List1->Columns->Add(L"A+B")->ComputedField = L"%0 + %1";
Exlistlib_tlb::IItemsPtr var_Items = List1->Items;
	var_Items->set_Caption(var_Items->Add(TVariant(1)),TVariant(1),TVariant(2));
Exlistlib_tlb::IItemsPtr var_Items1 = List1->Items;
	var_Items1->set_Caption(var_Items1->Add(TVariant(10)),TVariant(1),TVariant(20));

207
Is there any function to filter the control's data as I type, so the items being displayed include the typed characters

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Filter");
	var_Column->FilterOnType = true;
	var_Column->DisplayFilterButton = true;
	var_Column->AutoSearch = Exlistlib_tlb::AutoSearchEnum::exContains;
List1->Items->Add(TVariant("Canada"));
List1->Items->Add(TVariant("USA"));

206
Is there any function to filter the control's data as I type, something like filter on type

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Filter");
	var_Column->FilterOnType = true;
	var_Column->DisplayFilterButton = true;
List1->Items->Add(TVariant("Canada"));
List1->Items->Add(TVariant("USA"));

205
How can I programmatically filter a column

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Filter");
	var_Column->DisplayFilterButton = true;
	var_Column->FilterType = Exlistlib_tlb::FilterTypeEnum::exNonBlanks;
List1->Items->Add(TNoParam());
List1->Items->Add(TVariant("not empty"));
List1->ApplyFilter();

204
How can I show or display the control's filter

List1->Columns->Add(L"Filter")->DisplayFilterButton = true;

203
How can I customize the items being displayed in the drop down filter window

Exlistlib_tlb::IColumnPtr var_Column = List1->Columns->Add(L"Custom Filter");
	var_Column->DisplayFilterButton = true;
	var_Column->DisplayFilterPattern = false;
	var_Column->CustomFilter = TVariant(String("Excel Spreadsheets (*.xls )||*.xls|||Word Documents||*.doc|||Powerpoint Presentations||*.pps|||Text Documents (*.log,*.txt)||*.") +
"txt|*.log");
	var_Column->FilterType = Exlistlib_tlb::FilterTypeEnum::exPattern;
	var_Column->Filter = L"*.xls";
List1->Items->Add(TVariant("excel.xls"));
List1->Items->Add(TVariant("word.doc"));
List1->Items->Add(TVariant("pp.pps"));
List1->Items->Add(TVariant("text.txt"));
List1->ApplyFilter();

202
How can I change the order or the position of the columns in the sort bar

List1->SortBarVisible = true;
List1->SortBarColumnWidth = 48;
List1->Columns->Add(L"C1")->SortOrder = Exlistlib_tlb::SortOrderEnum::SortAscending;
List1->Columns->Add(L"C2")->SortOrder = Exlistlib_tlb::SortOrderEnum::SortDescending;
List1->Columns->get_Item(TVariant("C2"))->SortPosition = 0;

201
How do I arrange my columns on multiple levels

List1->Columns->Add(L"S")->Width = 32;
List1->Columns->Add(L"Level 2")->set_LevelKey(TVariant(1));
List1->Columns->Add(L"Level 3")->set_LevelKey(TVariant(1));
List1->Columns->Add(L"Level 4")->set_LevelKey(TVariant(1));
List1->Columns->Add(L"Level 1")->set_LevelKey(TVariant("2"));
List1->Columns->Add(L"Level 2")->set_LevelKey(TVariant("2"));
List1->Columns->Add(L"Level 3")->set_LevelKey(TVariant("2"));
List1->Columns->Add(L"Level 4")->set_LevelKey(TVariant("2"));
List1->Columns->Add(L"E")->Width = 32;